package com.hujiang.basic.search.common.converter.req;

import org.elasticsearch.action.delete.DeleteRequest;
import org.springframework.stereotype.Component;

import com.hujiang.basic.search.common.converter.Converter;
import com.hujiang.basic.search.model.HJDeleteRequest;

@Component
public class DeleteRequestConverter implements Converter<HJDeleteRequest, DeleteRequest> {

    @Override
    public DeleteRequest convert(HJDeleteRequest in) {
        return new DeleteRequest(in.getIndex(), in.getType(), in.getId());
    }
}
